<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>display</title>
	<style type="text/css">
		h1, p, span, a {
			background-color: #ddd;
		}
		h1, p {
			/*display: inline;*/
			/*margin: 10px 15px;*/
		}
		span, a {
			/*display: block;*/
			/*margin: 10px 15px;*/
		}
	</style>
</head>
<body>
	<h1>我是h1元素</h1>
	<p>我是p元素</p>
	<span>我是span 1</span>
	<span>span 2 内容长一点</span>
	<a href="#">链接a</a>
</body>
</html>





